Integrand size = 23, antiderivative size = 148 \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3970, 912, 1275, 212} \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d} \]
[In]
[Out]
Rule 212
Rule 912
Rule 1275
Rule 3970
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (b^2-x^2\right )^2}{x (a+x)^{3/2}} \, dx,x,b \sec (c+d x)\right )}{b^4 d} \\ & = \frac {2 \text {Subst}\left (\int \frac {\left (-a^2+b^2+2 a x^2-x^4\right )^2}{x^2 \left (-a+x^2\right )} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{b^4 d} \\ & = \frac {2 \text {Subst}\left (\int \left (3 a^2 \left (1-\frac {2 b^2}{3 a^2}\right )-\frac {\left (a^2-b^2\right )^2}{a x^2}-3 a x^2+x^4-\frac {b^4}{a \left (a-x^2\right )}\right ) \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{b^4 d} \\ & = \frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}-\frac {2 \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{a d} \\ & = -\frac {2 \text {arctanh}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.56 (sec) , antiderivative size = 117, normalized size of antiderivative = 0.79 \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\frac {2 \left (5 b^4 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},1+\frac {b \sec (c+d x)}{a}\right )+a \left (4 a \left (4 a^2-5 b^2\right )+2 b \left (4 a^2-5 b^2\right ) \sec (c+d x)-2 a b^2 \sec ^2(c+d x)+b^3 \sec ^3(c+d x)\right )\right )}{5 a b^4 d \sqrt {a+b \sec (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1233\) vs. \(2(132)=264\).
Time = 15.60 (sec) , antiderivative size = 1234, normalized size of antiderivative = 8.34
[In]
[Out]
none
Time = 0.50 (sec) , antiderivative size = 467, normalized size of antiderivative = 3.16 \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\left [\frac {5 \, {\left (a b^{4} \cos \left (d x + c\right )^{3} + b^{5} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \log \left (-8 \, a^{2} \cos \left (d x + c\right )^{2} - 8 \, a b \cos \left (d x + c\right ) - b^{2} + 4 \, {\left (2 \, a \cos \left (d x + c\right )^{2} + b \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}\right ) - 4 \, {\left (2 \, a^{3} b^{2} \cos \left (d x + c\right ) - a^{2} b^{3} - {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 5 \, a b^{4}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (4 \, a^{4} b - 5 \, a^{2} b^{3}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}}{10 \, {\left (a^{3} b^{4} d \cos \left (d x + c\right )^{3} + a^{2} b^{5} d \cos \left (d x + c\right )^{2}\right )}}, \frac {5 \, {\left (a b^{4} \cos \left (d x + c\right )^{3} + b^{5} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + b}\right ) - 2 \, {\left (2 \, a^{3} b^{2} \cos \left (d x + c\right ) - a^{2} b^{3} - {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 5 \, a b^{4}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (4 \, a^{4} b - 5 \, a^{2} b^{3}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}}{5 \, {\left (a^{3} b^{4} d \cos \left (d x + c\right )^{3} + a^{2} b^{5} d \cos \left (d x + c\right )^{2}\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int \frac {\tan ^{5}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.31 \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\frac {\frac {5 \, \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} - \sqrt {a}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} + \sqrt {a}}\right )}{a^{\frac {3}{2}}} + \frac {10}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a} + \frac {2 \, {\left (a + \frac {b}{\cos \left (d x + c\right )}\right )}^{\frac {5}{2}}}{b^{4}} - \frac {10 \, {\left (a + \frac {b}{\cos \left (d x + c\right )}\right )}^{\frac {3}{2}} a}{b^{4}} + \frac {30 \, \sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a^{2}}{b^{4}} + \frac {10 \, a^{3}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} b^{4}} - \frac {20 \, \sqrt {a + \frac {b}{\cos \left (d x + c\right )}}}{b^{2}} - \frac {20 \, a}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} b^{2}}}{5 \, d} \]
[In]
[Out]
\[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int { \frac {\tan \left (d x + c\right )^{5}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx=\int \frac {{\mathrm {tan}\left (c+d\,x\right )}^5}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]